package br.infotec.deptmusica.diasemana;

import java.util.List;

import org.hibernate.Session;

public class DiaSemanaHibernateDAO implements DiaSemanaDAO {

	private Session session;
	
	@SuppressWarnings("unchecked")
	@Override
	public List<DiaSemana> lista() {
		return this.session.createCriteria(DiaSemana.class).list();
	}

	public Session getSession() {
		return session;
	}

	public void setSession(Session session) {
		this.session = session;
	}
}
